<table class="layui-table text-center" lay-size="sm">
    <thead>
        <tr>
            <th><input type="checkbox" class="checked-all" target="trash-id"></th>
            <th style="text-align: left;">表名</th>
            <th>主键</th>
            <th style="text-align: left;">删除时间</th>
            <th>操作人</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
        {volist name="list" id="item" key="k"}
            <tr>
                <td><input type="checkbox" class="trash-id" name="trash_id[]" value="{$item.trash_id}"></td>
                <td class="text-left copy-text">{$item.tablename}</td>
                <td>{$item.id}</td>
                <td class="text-left">{$item.create_time}</td>
                <td>{php}echo !empty($item->admin)?($item->admin->nickname?:$item->admin->username):'系统删除';{/php}</td>
                <td>
                    <a class="layui-btn layui-btn-xs layui-btn-normal ajax-get" msg="0" href="{:url('recover', ['ids'=>$item['trash_id']])}">恢复</a>
                    <a href="{:url('delete',['ids'=>$item['trash_id']])}" title="删除" confirm="1" class="layui-btn layui-btn-xs layui-btn-danger ajax-get">删除</a>
                </td>
            </tr>
        {/volist}
        {empty name="list"}
        <tr>
            <td colspan="6">没有数据</td>
        </tr>
        {/empty}
    </tbody>
</table>
<div class="page">
    {$page|raw}
</div>